global get_memsize
SelectorData equ 32
get_memsize:
	push ebp
	mov ebp, esp
	mov ebx, dword [ebp+8]
	;push ds
	mov ax, SelectorData
	mov es, ax
	mov eax, dword [es:0]
	;pop ds
	mov [ebx], eax
	pop ebp
	ret
